package itheima06;

import java.io.FileNotFoundException;
import java.io.PrintStream;

/**
 * @author xxx
 * @date 2020/12/23 23:51
 * @description
 */
public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream printStream=new PrintStream("D:\\java349\\day12\\ps3.txt");
        printStream.write(98);
        printStream.write(99);
        printStream.println(97);
        printStream.println(99);

        System.setOut(printStream);
        System.out.println("11111");
        System.out.println(97);
        System.out.println(98);
    }
}
